package com.creative.xcx.service;

import com.creative.xcx.domain.UserFavorite;
import com.creative.xcx.domain.vo.UserFavoriteVo;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author ling
 * @description 用户收藏
 * @date 2025-03-23
 */
@Transactional(rollbackFor = Exception.class)
public interface UserFavoriteService {

    /**
     * 新增
     */
    public Integer insert(UserFavorite userFavorite);

    /**
     * 删除
     */
    public Integer delete(UserFavorite userFavorite);

    /**
     * 批量删除
     */

    public Integer deleteBatch(Long[] ids);


    /**
     * 更新
     */
    public Integer update(UserFavorite userFavorite);

    /**
     * 根据主键 id 查询
     */
    public UserFavorite selectById(Long id);

    /**
     * 分页查询
     */
    public List<UserFavoriteVo> selectUserFavoriteList(UserFavorite userFavorite);

    /**
     * 批量导出
     *
     * @author ling
     * @date 2025/03/23
     **/
    public List<UserFavorite> exportBatch(Long[] ids);
}
